home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _A34DA69DF8A3440EB7A404A4C667164F < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.4 KB  |  46 lines

  1. //CGVER1.8
  2. vs_1_1
  3. // DX9 Vertex shader generated by NVIDIA Cg compiler
  4. // cgc version 1.1.0003, build date Jul  7 2003  11:55:19
  5. // command line args: -q -profile vs_1_1 -entry main -profileopts dcls
  6. // nv30vp backend compiling 'main' program
  7. //vendor NVIDIA Corporation
  8. //version 1.0.02
  9. //profile vs_1_1
  10. //program main
  11. //semantic main.ModelViewProj : C0
  12. //semantic main.Offset
  13. //semantic main.ClipPlane : C14
  14. //semantic main.g_VSCONST_0_025_05_1 : C28
  15. //var float4 IN.Position : $vin.POSITION : POSITION : 0 : 1
  16. //var float3 IN.Tangent : $vin.TEXCOORD2 : TEXCOORD2 : 0 : 1
  17. //var float3 IN.Binormal : $vin.TEXCOORD3 : TEXCOORD3 : 0 : 1
  18. //var float3 IN.TNormal : $vin.BLENDWEIGHT : BLENDWEIGHT : 0 : 1
  19. //var float4x4 ModelViewProj : C0 : c[0], 4 : 1 : 1
  20. //var float4 Offset :  : c[4] : 2 : 1
  21. //var float4 ClipPlane : C14 : c[14] : 3 : 1
  22. //var float4 g_VSCONST_0_025_05_1 : C28 : c[28] : 4 : 1
  23. //var float4 Tex3 : $vout.TEXCOORD3 : TEXCOORD3 : -1 : 1
  24. //var float4 HPosition : $vout.POSITION : POSITION : -1 : 1
  25. //var float4 Tex0 : $vout.TEXCOORD0 : TEXCOORD0 : -1 : 1
  26. dcl_blendweight v1
  27. dcl_texcoord3 v10
  28. dcl_texcoord2 v9
  29. dcl_position v0
  30.     mov r1, v0
  31.     mad r1.xyz, v1.xyz, c4.x, r1.xyz
  32.     dp4 oPos.x, c0, r1
  33.     dp4 oPos.y, c1, r1
  34.     dp4 r0.y, c2, r1
  35.     mov oPos.z, r0.y
  36.     dp4 r0.x, c3, r1
  37.     mov oPos.w, r0.x
  38.     rcp r0.x, r0.x
  39.     mul r0.x, r0.y, r0.x
  40.     mov oT0.xy, r0.x
  41.     dp4 oT3.z, r1, c14
  42.     mov oT3.xyw, r1.w
  43. // 13 instructions
  44. // 2 temp registers
  45. // End of program
  46.